package com.qiyee.dalligent.module.customer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qiyee.dalligent.module.customer.entity.CustomerUser;
import com.qiyee.dalligent.module.customer.mapper.CustomerUserMapper;
import com.qiyee.dalligent.module.customer.service.CustomerUserService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CustomerUserServiceImpl extends ServiceImpl<CustomerUserMapper, CustomerUser> implements CustomerUserService {
    @Override
    public boolean addCustomerUser(CustomerUser customerUser) {
        if (customerUser==null){
            return false;
        }
        return this.save(customerUser);
    }

    @Override
    public List<CustomerUser> getCustomerUserList() {
        return this.lambdaQuery().list();
    }
}
